package com.xiyoukt.springboot.mapper.master;

import com.xiyoukt.springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MasterUserMapper {

    int addUser(User user);

    List<User> getAll();

    int delUser(@Param("id") Long id);

    List<User> pageUser(@Param("page") int page, @Param("size") int size);

    @Select("select * from user where id=#{id}")
    User getUser(@Param("id") Long id);

}
